From: Paul Donald Date: Wed, 23 Jul 2025 11:50:07 +0000 (+0200) Subject: luci-app-ddns: fix cacert param write for all cases X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=03b3df6373849fa780aad1806fbb8f5c33dc554e;p=project%2Fluci.git luci-app-ddns: fix cacert param write for all cases follow-up to 929c520def5dd1393f831befac1bf9dee9f9d796 Signed-off-by: Paul Donald --- diff --git a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js index c5576392be..2a11193c74 100644 --- a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js +++ b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js @@ -457,8 +457,7 @@ return view.extend({ o.description = _('CA certificate bundle file that will be used to download services data. Set IGNORE to skip certificate validation.'); o.placeholder = 'IGNORE'; o.write = function(section_id, value) { - if(value == 'ignore') - uci.set('ddns', section_id, 'cacert', value.toUpperCase()); + uci.set('ddns', section_id, 'cacert', value == 'ignore' ? value.toUpperCase() : value); }; o = s.taboption('global', form.Value, 'services_url', _('Services URL Download')); @@ -810,8 +809,7 @@ return view.extend({ o.rmempty = false; o.optional = true; o.write = function(section_id, value) { - if(value == 'ignore') - uci.set('ddns', section_id, 'cacert', value.toUpperCase()); + uci.set('ddns', section_id, 'cacert', value == 'ignore' ? value.toUpperCase() : value); }; };